package ooday05;
//枚举的演示
public class EnumDemo {
    public static void main(String[] args) {
        Season s=Season.WINTER;
        System.out.println(s.getSeasonDesc()+","+s.getSeasonName());
        switch (s){
            case SPRING:
                System.out.println("");
                break;
            case SUMMER:
                System.out.println("");
                break;
            case AUTUMN:
                System.out.println("");
                break;
            case WINTER:
                System.out.println("");
                break;
        }

         Season[] seasons=Season.values();
        for(int i=0;i<seasons.length;i++){
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName());
            System.out.println(seasons[i].getSeasonDesc());
        }
    }
}
